package com.css.zfzx.fxpg.modules.risk.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.risk.repository.entity.FxRiskResultEntity;
import com.css.zfzx.fxpg.modules.risk.viewobjects.FxRiskResultQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import com.css.zfzx.fxpg.modules.vulnerability.area.viewobjects.FxVulnerabilityAreaQueryParams;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author leon
 * @date 2020-11-12
 */

public interface FxRiskResultService {

    JSONObject queryFxRiskResults(FxRiskResultQueryParams queryParams, int curPage, int pageSize);

    FxRiskResultEntity getFxRiskResult(String id);

    FxRiskResultEntity saveFxRiskResult(FxRiskResultEntity fxRiskResult);

    FxRiskResultEntity updateFxRiskResult(FxRiskResultEntity fxRiskResult);

    void deleteFxRiskResults(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    String importExcel(MultipartFile file);

    String exportExcel(FxRiskResultQueryParams queryParams, HttpServletResponse response);
}
